package com.dyc.caradvertisting.ui.fmt.login;

import com.dyc.caradvertisting.api.ClientService;
import com.njh.tools.api.manager.ServiceManager;
import com.njh.tools.base.util.RxSchedulers;

import java.util.Map;

import rx.Observable;

/**
 * Created by niejiahuan on 2016/5/31.
 */
public class LoginModel implements LoginContract.Model {
    @Override
    public Observable getDate(Map<String, String> map) {
        return null;
    }

    @Override
    public Observable reqUserlogin(String path, String act, String param, String sign, String strtime) {
        return ServiceManager.create(ClientService.class)
                .reqUserlogin(path,act,param,sign,strtime)
                .compose(RxSchedulers.io_main());
    }
}
